﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ESupervision.Models
{
    public class Student : ApplicationUser
    {

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        [Display(Name = "Enrollment Date")]
        public DateTime EnrollmentDate { get; set; }

        public String SupervisorUserId { get; set; }

        public String SecondMarkerUserId { get; set; }

        public String AuthorisedStaffId { get; set; }

        [ForeignKey("SupervisorUserId")]
        public virtual Teacher Supervisor { get; set; }

        [ForeignKey("SecondMarkerUserId")]
        public virtual Teacher SecondMarker { get; set; }

        [ForeignKey("AuthorisedStaffId")]
        public virtual AuthorisedStaff AuthorisedStaff { get; set; }
    }
}